<ion-view view-title="确认订单">
  <ion-content>
    <div class="list">
      <a ng-hide="{{address == null}}" href="#/address/list" class="item item-icon-left item-icon-right">
        <i class="icon ion-ios-location positive"></i>
        <h3>{{address.name}} {{address.phone}}</h3>
        <p> {{address.address}} </p>
        <i class="icon ion-ios-arrow-right"></i>
      </a>
      <a ng-show="{{address == null}}" href="#/address/edit/new" class="item item-icon-left item-icon-right">
        <i class="icon ion-ios-location positive"></i>
        <h3>点击添加地址</h3>
        <i class="icon ion-ios-arrow-right"></i>
      </a>
      <i class="item">
        <ion-list>
            <!-- <ion-radio ng-model="choice" ng-value="'B'" ng-checked="true">货到付款</ion-radio> -->
            <ion-item class="item item-icon-right" type="item-text-warp">
              <i class="icon ion-android-done"></i>
              目前仅支持货到付款
            </ion-item>
        </ion-list>
      </i>
      <i class="item">
        <label class="item item-input">
          <input type="text" placeholder="备注(口味、偏好等其他需求)">
        </label>
      </i>
      <i class="item">
        <ion-list>
          <ion-item class="item" ng-repeat="food in foods" type="item-text-wrap">
            <span class="item-note">× {{food.count}}&nbsp;&nbsp;&nbsp;&nbsp; ￥{{food.count * food.price}}</span>
            {{food.name}}
          </ion-item>
          <ion-item class="item" type="item-text-wrap">
            <span class="item-note assertive">￥{{shop.peisong==undefined?0:shop.peisong}}</span>
            配送费
          </ion-item>
        </ion-list>
      </i>
    </div>

  </ion-content>
  <ion-footer-bar class="bar-positive">
    <div class="bar bar-footer bar-dark">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="ion-ios-cart-outline" style="font-size: xx-large"></i>
      &nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: x-large;margin: auto 0">￥{{totalPrice}}</span>
      <button class="button button-large button-balanced pull-right"
              style="margin-right: 10px" ng-click="pay(shop)">下订单
      </button>
    </div>
  </ion-footer-bar>
</ion-view>
